package 剑指Offer1;

public class _08左旋转字符串 {
    public String reverseLeftWords(String s, int n) {
        if(s == null) return null;
        StringBuilder sb = new StringBuilder();
        char[] chars = s.toCharArray();
        int index = 0;
        while(index<n){
            index++;
        }
        for(int i=index;i<chars.length;++i){
            sb.append(chars[i]);
        }
        for(int i=0;i<n;++i){
            sb.append(chars[i]);
        }
        return sb.toString();
    }
}
